﻿@model IEnumerable<OPM.Models.GetKnowledges>
@using OPM.Class;
@using System.Web.Mvc;
@using OPM;

@{
    Layout = null;
    var group = WSO.GetGroups(U.Token);
}

@foreach (var r in ViewBag.knowlenge)
{
    <div class="timelinebullet p-Absolute"></div>

    <div class="knowledge-Title">
        <a  href="@Url.Action("Detail", "Information", new { id = r.id })">
            <p>@r.title_th</p></a>
        <time class="timeago" datetime="2015-04-16T12:52:17">@r.date_start</time>
        <!-- ใช้แบบ iso 8601 -->
    </div>
    
    <input type="hidden" name="content_id" id="content_id" value="@r.id" />
    
    <div class="timeline-action p-Absolute" onclick="openActionBox('@r.id ');"></div>
@*<div class="timeline-action-box dNone p-Absolute">
        <div class="timeline-action-box1"><a href="#">แก้ไข</a></div>
        <div class="timeline-action-box2"><a href="#">ประสานงาน</a></div>
        <div class="timeline-action-box3"><a href="#">รายงานผล</a></div>
        <div class="timeline-action-box4"><a href="#">ประชาชนติดตาม</a></div>
    </div>*@
    <div class="knowledge-Detail">
        <p>@r.detail</p>
    </div>
    <div class="knowledge-more dNone" onclick="openMoreBox('@r.id');">@Multi.ReadMore.</div>
    <div class="knowledge-image">
        <a href="#" onclick="colorboxopen($(this).attr('href')); return false;">
            <img src=" @r.picture" alt="" />
        </a>
    </div>
    <div class="timeline-Comment" id="Comment_show" onclick="openComment('@r.id');">
        @r.count_comment @Multi.comment
        <div class="timeline-Comment-More"></div>
        <div class="smile_tab floatR">@r.count_smile</div>
        <div class="clear2"></div>
    </div>
}
<!-- start loop -->

@foreach (var t in ViewBag.comment)
{                  
    <div class="timeline-Comment2 dNone Comment_tab_id">
        <div class="floatL timeline-Comment-Avatar">
            <img src="~/images/icon-avatar.png" alt="" />
        </div>
        <div class="timeline-Comment-Text">
            <p>@t.created_by_text</p>
            <p>@t.comment_text</p>
            <time class="timeago" datetime="2015-04-16T12:52:17Z">@t.created</time>
            @*<span>| แก้ไข</span>*@
        </div>
        <div class="clear"></div>
    </div>
}                    
<!-- end loop -->

<div class="timeline-Comment2 dNone Comment_show_more" onclick="openComment('1');">
    @Multi.previous
        <div class="timeline-Comment-More"></div>
</div>





